import elementEnLocale from 'element-ui/lib/locale/lang/en'
import Utils from '@utils'
import enUs from './en_us'
// 自动化处理模块注册
const modulesFiles = require.context('./modules', true, /\.js$/)
const modules = Utils.getJavaScriptModules(modulesFiles)// 驼峰命名
const model = {}
Object.keys(modules).forEach(key => {
  model[key] = modules[key].en
})
const en = {
  message: {
    hello: 'hello, world'
  },
  ...model,
  ...elementEnLocale,
  ...enUs
}

export default en
